<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <form action="">
        <input type="text" name = 'fir'>
        <input type="text" name='sec'>
    </form>
    <script>
        var fom = document.getElementsByTagName('form')[0];
        var fmdata = new FormData(fom);
        console.log(fom.childNodes);
        //console.log(fmdata);
    </script>
</body>
</html>
